<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
</html>
<script>
    function formatWeek(data) {
        const week = {
            0: '周日',
            1: '周一',
            2: '周二',
            3: '周三',
            4: '周四',
            5: '周五',
            6: '周六',
        }
        const array = Array.from(new Set(data)).sort()
        console.log(array)
    }
    const list = [0,1,5,0,1]
    console.log(formatWeek(list))
</script>
